﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace WCFServiceWebRole1
{
    [DataContract]
    public class UserMessage
    {
        [DataMember]
        public string id { get; set; }

        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public string Password { get; set; }

        [DataMember]
        public DateTime Birthdate { get; set; }

        [DataMember]
        public string Email { get; set; }

        [DataMember]
        public double Latitude { get; set; }

        [DataMember]
        public double Longitude { get; set; }

        [DataMember]
        public DateTime LocationTime { get; set; }

        [DataMember]
        public string Status { get; set; }

        public UserMessage() { }

        /*
        public UserMessage(ConvoDb u)
        {
            this.id = u.RowKey;
            this.Name = u.Name;
            this.Birthdate = u.Birthdate;
            this.Email = u.Email;
            this.Latitude = u.Latitude;
            this.Longitude = u.Longitude;
            this.LocationTime = u.LocationTime;
            this.Status = u.Status;
        }*/
    }
}